---更新排行榜分数(最大分数9,007,19 )
return [[
    local key = KEYS[1]
    local mem = ARGV[1]
    local val = tonumber(ARGV[2])
    local sec = tonumber(ARGV[3]) - 1735660800 --2025-01-01 00:00:00
    sec = 10000000000 - sec

    local old = tonumber(redis.call('zscore', key, mem)) or 0
    if old > 0 then
        old = math.floor(old / 10000000000)
        if old ~= val then
            ---分数不同才更新
            local score = val * 10000000000 + sec
            redis.call('zadd', key, score, mem)
        end
        return 0
    else
        --新增加分数
        local score = val * 10000000000 + sec
        redis.call('zadd', key, score, mem)
        return 1
    end
]]
